<template>
  <div class="echart-box" ref="dom"></div>
</template>
<script setup leng="ts">
import {ref, onMounted} from "vue"
defineOptions({
    name:"Echart",
    inheritAttrs: true,
    customOptions: {}
})
const $emit = defineEmits([
  "register"
])
const dom = ref(null)
onMounted(() => {
  $emit('register', dom)
})
</script>
<style lang="less" scoped>
.echart-box{
  width:100%;
  height:100%;
}
</style>
